<?php
namespace app\api\controller\xiluedu;


use app\common\controller\Api;
use app\common\model\xiluedu\VipOrder AS VipOrderModel;
use app\common\model\xiluedu\Third;
use think\Exception;
use function fast\array_get;

class VipOrder extends Api
{
    protected $noNeedRight = ['*'];


    /**
     * 创建订单及支付
     */
    public function create_order(){
        $params = $this->request->param('');
        try {
            $result = VipOrderModel::createOrder($params);
        }catch (Exception $e){
            $this->error($e->getMessage());
        }
        $this->success('创建订单成功',$result);
    }

}